 #define  _CRT_SECURE_NO_WARNINGS 1
#include"AVLtree.h"
#include<utility>
#include<iostream>
#include<vector>
#include<map>
#include<stdlib.h>
int main()
{
	/*AVLtree<int, int>t;
	int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	int arr2[] = { 4, 2, 6, 1, 3, 5, 15, 7,16,14};
	for (auto ch : arr)
	{
		t.Insert(make_pair(ch,ch));
	}

	t.Inorder();*/




	const int N = 10;
	vector<int> v;
	v.reserve(N);
	//srand(time(0));

	for (size_t i = 0; i < N; i++)
	{
		v.push_back(rand());
	}

	AVLtree<int, int> t;
	for (auto e : v)
	{
		t.Insert(make_pair(e, e));
	}

	t.Inorder();

	t.isbalance();
	return 0;
	
}